import Ember from 'ember';

export default Ember.Service.extend({
	games:[
		{gameZoneProductId:1, productCode:"bdfm", productName:"棒打疯猫", icon:"assets/images/icons/1.png", startBanner:"assets/images/yxzsqy.png"},
		{gameZoneProductId:2, productCode:"pmdtw", productName:"PM2.5大逃亡", icon:"assets/images/icons/2.png", startBanner:"assets/images/PMTW.png"}
	],
	getGameById(gameZoneProductId) {
		let got;
		Ember.$(this.games).each(function (key, game) {
			if (game.gameZoneProductId === parseInt(gameZoneProductId)) {
				got = game;
				return false;
			}
		});
		return got;
	}
});
